<?php
	
	/**
	 * 获得静态文件完整路径
	 */
	function getStaticPath($ishtml,$htmldir,$aid){
		if($ishtml==1){
			return __STATIC__.'/'.C('INDEX_TPL_STYLE').'/'.$htmldir.'/'.$aid.'.html';	
		}else{
			return U('Index/details/details',array('aid'=>$aid));
		}
		
	}
	
	function getCateUrl($isHtml,$dir,$cid){
	//如果是静态地址
	if($isHtml){
		$path = __ROOT__ . '/Static/' . C('INDEX_TPL_STYLE') . '/' . $dir . '/index.html';
	}else{
		//动态地址
		$path = U('List/index',array('cid'=>$cid));
	}
	return $path;
}

	
